package com.example.onlinefood.mapper;

import com.example.onlinefood.domain.OrderEvaluation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderEvaluationMapper {
    // 添加订单评价
    int insert(OrderEvaluation evaluation);
    
    // 根据订单ID查询评价
    OrderEvaluation findByOrderId(@Param("orderId") Integer orderId);
    
    // 根据订单ID删除评价
    int deleteByOrderId(@Param("orderId") Integer orderId);
}